<?php
namespace Tbf\Component\Io;
class EchoStringWriter implements StringWriterInterface{
    /**
     * 写入一些字符串
     * @param  string $string
     * @return string 错误
     */
    public function write($string)
    {
        echo $string;
        return null;
    }
    public static function obj(){
        return new EchoStringWriter();
    }
}